<form name="form" ng-init="vm.init();refresh(vm.callback);" novalidate>
  <script id="opt-toolbar" type="text/ng-template">
    <div>
      <button class="btn btn-default" type="button" ng-click="vm.generate(form.$valid)">
        <i class="fa fa-file-text-o"></i> 生成注释</button>
      <button id="copy" class="btn btn-default" type="button" data-clipboard-action="copy"
          data-clipboard-target="#code" ng-disabled="vm.code == ''"><i class="fa fa-copy"></i> 复制</button>
      <button class="btn btn-default" type="button" ng-click="vm.reset()">
        <i class="fa fa-repeat"></i> 重置</button>
    </div>
  </script>
  <div class="row x-view-body">
    <div class="col-md-7 x-view-line">
      <div class="x-view-scope" api-params="vm.apiParams" style="margin-bottom:0"></div>
    </div>
    <div class="col-md-5">
      <pre class="x-view-scope x-output" id="code">{{vm.code}}</pre>
    </div>
  </div>
</form>
